package com.eorchis.module.planopinion.ui.commond;

import java.io.Serializable;
import java.util.Date;
import com.eorchis.core.annotation.AuditIgnore;
import com.eorchis.core.annotation.AuditProperty;
import com.eorchis.core.basedao.entity.IBaseEntity;
import com.eorchis.core.ui.commond.ICommonField;
import com.eorchis.core.ui.commond.ICommond;
import com.eorchis.module.basedata.domain.BaseData;
import com.eorchis.module.planopinion.domain.PlanOpinion;

/**
 * Title: PlanOpinionValidCommond<br>
 * Description: 填写计划意见实体表ValidCommond<br>
 * Company: GoldGov<br>
 * Copyright @ 2012 GoldGov .All rights reserved.<br>
 * @author RongSL
 * @createDate 2016-07-12
 * @version $Revision$
 */
public class PlanOpinionValidCommond implements ICommond,ICommonField {
	
	private PlanOpinion planOpinion;
	private String OTitle;//意见标题
	
	public PlanOpinionValidCommond(){
		planOpinion = new PlanOpinion();
	}
	
	public PlanOpinionValidCommond(PlanOpinion planOpinion){
		this.planOpinion = planOpinion;
	}

	@AuditIgnore
	public Serializable getEntityID() {
		return planOpinion.getOpinionId();
	}

	public IBaseEntity toEntity() {
		return planOpinion;
	}

	/**
	 * 获取ID
	 */	
	@AuditProperty(value="ID")
	public String getOpinionId() {
		return planOpinion.getOpinionId();
	}
	/**
	 * 设置ID
	 */		
	public void setOpinionId(String opinionId) {
		planOpinion.setOpinionId(opinionId);
	}
	/**
	 * 获取状态
	 */	
	@AuditProperty(value="意见状态")
	public Integer getOpinionState() {
		return planOpinion.getOpinionState();
	}
	/**
	 * 设置状态
	 */		
	public void setOpinionState(Integer opinionState) {
		planOpinion.setOpinionState(opinionState);
	}
	/**
	 * 获取意见标题
	 */	
	@AuditProperty(value="意见标题")
	public BaseData getOpinionTitle() {
		this.setOTitle(planOpinion.getOpinionTitle().getDataName());
		return planOpinion.getOpinionTitle();
	}
	/**
	 * 设置意见标题
	 */		
	public void setOpinionTitle(BaseData opinionTitle) {
		planOpinion.setOpinionTitle(opinionTitle);
	}
	/**
	 * 获取意见内容
	 */	
	@AuditProperty(value="意见内容")
	public String getOpinionValue() {
		return planOpinion.getOpinionValue();
	}
	/**
	 * 设置意见内容
	 */		
	public void setOpinionValue(String opinionValue) {
		planOpinion.setOpinionValue(opinionValue);
	}
	
	public String getIssuedId() {
		return planOpinion.getIssuedId();
	}
	public void setIssuedId(String issuedId) {
		planOpinion.setIssuedId(issuedId);
	}

	public Date getCreateDate() {
		return planOpinion.getCreateDate();
	}

	public void setCreateDate(Date createDate) {
		planOpinion.setCreateDate(createDate);
	}

	@Override
	public Integer getActiveState() {
		return planOpinion.getActiveState();
	}

	@Override
	public void setActiveState(Integer activeState) {
		planOpinion.setActiveState(activeState);
	}

	public String getOTitle() {
		return OTitle;
	}

	public void setOTitle(String oTitle) {
		OTitle = oTitle;
	}
}
